<template>
  <MainLayout>
    <section class="forum-header">
      <div class="container">
        <div class="forum-header-title">将您的CAD模型变成交互式展示</div>
        <div class="forum-header-content">通过添加有助于解释概念的交互式和动画组件来改善CAD文件的可视化。</div>
        <div class="find-btn">
          <div class="find-btn-txt">让我们联结一下</div>
        </div>
      </div>
    </section>

    <section class="img-section">
      <div class="container">
        <img class="img-section-img" src="/images/seek/import/shoes.jpg" alt="" />
      </div>
    </section>

    <section class="threeD-section">
      <div class="container">
        <div class="threeD-title">加快工作流程，以加快设计审批速度</div>
        <div class="threeD-description">改进设计，使其具有互动性，与您的团队合作并发布您的作品。</div>
      </div>
    </section>
    <section class="scroll-section">
      <div class="container">
        <img class="scroll-section-img" src="/images/seek/import/speed.jpg" alt="" />
      </div>
    </section>
    <section class="img-section">
      <div class="container">
        <img class="img-section-img" src="/images/seek/import/mianju.jpg" alt="" />
      </div>
    </section>

    <section class="share-section">
      <div class="container">
        <div class="share-title">导入到AnyRender进行编辑和共享</div>
        <div class="share-list">
          <div class="share-item" v-for="i in 15" :key="i">
            <img class="share-item-img" :src="`/images/seek/import/logo/${i}.jpg`" alt="" />
          </div>
        </div>
        <div class="share-swiper">
          <el-carousel trigger="click" arrow="always" indicator-position="outside" height="150px">
            <el-carousel-item v-for="i in 15" :key="i">
              <img class="share-item-img" :src="`/images/seek/import/logo/${i}.jpg`" alt="" />
            </el-carousel-item>
          </el-carousel>
        </div>
        <div class="share-more">还有数百个...</div>
      </div>
    </section>

    <section class="threeD-section">
      <div class="container">
        <div class="threeD-title">解锁更多人访问</div>
        <div class="threeD-tips">可访问的3D场景</div>
        <div class="threeD-description">将复杂的CAD文件转换为交互式且易于共享的3D设计。</div>
      </div>
    </section>
    <section class="img-section">
      <div class="container">
        <img class="img-section-img" src="/images/seek/import/head.jpg" alt="" />
      </div>
    </section>
    <section class="work-section">
      <div class="container">
        <div class="work-content">
          <div class="work-content-item" v-for="item in txtList" :key="item.title">
            <div class="work-content-item-title">{{ item.title }}</div>
            <div class="work-content-item-desc">{{ item.desc }}</div>
          </div>
        </div>
      </div>
    </section>

    <section class="secure-content">
      <div class="container">
        <div class="secure-level">
          <div class="secure-iso">
            <img src="/images/seek/import/liucheng.jpg" alt="" />
          </div>
          <div class="secure-level-content">
            <div class="secure-level-tips">从哪里开始</div>
            <div class="secure-level-title">遵循分步流程，以获得最佳的视觉效果</div>
            <div class="secure-level-desc">
              详细教程的完整播放列表可在我们腾讯视频上找到。每一章都旨在涵盖需要理解和执行的重要主题。
            </div>
            <div class="secure-level-btn">
              <div class="secure-level-btn-inner">查看播放列表</div>
            </div>
          </div>
        </div>
      </div>
    </section>

    <section class="three-col-content">
      <div class="container">
        <div class="three-col-list">
          <div class="three-col-item" v-for="item in yanshiList" :key="item.title">
            <div class="three-col-item-inner">
              <img class="three-col-item-img" :src="item.img" alt="" />
              <div class="three-col-item-title">{{ item.title }}</div>
              <div class="three-col-item-content">{{ item.desc }}</div>
              <div class="three-col-item-btn">{{ item.btn }}</div>
            </div>
          </div>
        </div>
      </div>
    </section>

    <section class="threeD-section">
      <div class="container">
        <div class="threeD-title">从AnyRender成功案例中获得灵感</div>
      </div>
    </section>

    <section class="secure-content">
      <div class="container">
        <div class="secure-level">
          <div class="secure-level-content">
            <div class="secure-level-tips">案例研究</div>
            <div class="secure-level-title">在内部和与客户一起缩短反馈回路</div>
            <div class="secure-level-desc">
              原型工作室专门为客户定制产品。从想法到最终演示，使用AnyRender可以让他们更快地交付，错误更少。
            </div>
            <div class="secure-level-btn">
              <div class="secure-level-btn-inner" @click="jump('/resources/successCases')">了解更多</div>
            </div>
          </div>
          <div class="secure-iso">
            <img src="/images/seek/import/car.jpg" alt="" />
          </div>
        </div>
      </div>
    </section>

    <section class="img-section">
      <div class="container">
        <img
          class="img-section-img cursor"
          @click="jump('/business/businessVersion')"
          src="/images/seek/import/join.jpg"
          alt=""
        />
      </div>
    </section>
  </MainLayout>
</template>

<script setup>
  import { useRouter } from "vue-router";
  const router = useRouter();
  let txtList = [
    {
      title: "以链接的形式共享",
      desc: "单击项目URL（生成链接），在任何设备上打开3D查看器。",
    },
    {
      title: "嵌入和协作",
      desc: "通过将3D查看器直接嵌入到：Figma、Miro、Lucid、Notion中来审查和反馈。",
    },
    {
      title: "PBR标准材料",
      desc: "使用AnyRender的PBR材料库实现逼真的渲染效果。",
    },
  ];

  let yanshiList = [
    {
      title: "爆炸视图",
      desc: "单击交互时会显示通常会隐藏的图层。",
      btn: "查看演示",
      img: "/images/seek/import/yanshi/1.jpg",
    },
    {
      title: "模块化部件",
      desc: "本演示解释了组件如何从外部和内部配合在一起。",
      btn: "查看演示",
      img: "/images/seek/import/yanshi/2.jpg",
    },
    {
      title: "热点",
      desc: "浮动菜单显示其他信息和可点击选项。",
      btn: "查看演示",
      img: "/images/seek/import/yanshi/3.jpg",
    },
  ];

  function jump(path) {
    router.push(path);
  }
</script>

<style lang="scss" scoped>
  @import "@/styles/variables.scss";

  .forum-header {
    padding: 48px 0;

    .container {
      .forum-header-title {
        font-size: 64px;
        font-weight: 500;
        color: #000;
        line-height: 1.6;
        text-align: center;
        letter-spacing: 3px;
      }
      .forum-header-content {
        margin: 20px auto;
        width: 50%;
        line-height: 1.6;
        text-align: center;
        font-size: 16px;
        color: #585858;
      }
    }
    // 响应式 电脑
    @media (max-width: $breakpoint-desktop) {
      .container {
        .forum-header-title {
          font-size: 50px;
          letter-spacing: 2px;
        }
      }
    }
    // 响应式 平板
    @media (max-width: $breakpoint-tablet) {
      padding: 32px 0;
      .container {
        .forum-header-title {
          font-size: 38px;
          letter-spacing: 1px;
        }
        .forum-header-content {
          margin-top: 20px;
          font-size: 14px;
          width: 80%;
        }
      }
    }
    // 响应式 手机
    @media (max-width: $breakpoint-mobile) {
      padding: 24px 0;
      .container {
        .forum-header-title {
          font-size: 32px;
        }
      }
    }
  }

  .find-btn {
    margin: 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;

    .find-btn-txt {
      display: inline-block;
      text-align: center;
      padding: 8px 20px;
      min-width: 60px;
      font-size: 16px;
      border-radius: 6px;
      color: #fff;
      background-color: #703ffa;
      border: 1px solid #703ffa;
      cursor: pointer;
    }

    @media (max-width: $breakpoint-mobile) {
      margin: 20px auto;
      .find-btn-txt {
        margin: 20px auto;
        padding: 4px 20px;
        min-width: 100px;
        font-size: 14px;
      }
    }
  }

  .img-section {
    padding: 20px 0 40px;
    .container {
      .img-section-img {
        width: 100%;
        border-radius: 20px;
        overflow: hidden;
        object-fit: cover;
        box-shadow: 2px 4px 8px 8px rgba(0, 0, 0, 0.05);
        &.cursor {
          cursor: pointer;
        }
      }
    }
  }
  .scroll-section {
    padding: 20px 0;
    .container {
      .scroll-section-img {
        width: 100%;
        border-radius: 20px;
        overflow: hidden;
        object-fit: cover;
      }
    }
  }

  .threeD-section {
    padding: 40px 0 60px;
    color: #000;
    text-align: center;
    .container {
      .threeD-title {
        font-size: 48px;
        font-weight: 500;
        letter-spacing: 4px;
      }
      .threeD-tips {
        font-size: 22px;
        margin: 20px auto;
      }
      .threeD-description {
        width: 90%;
        margin: 15px auto;
        font-size: 16px;
        color: #5c5c5c;
      }
      .find-btn-txt {
        color: #703ffa;
        background-color: transparent;
      }

      // 响应式 电脑
      @media (max-width: $breakpoint-desktop) {
        .threeD-title {
          font-size: 36px;
          letter-spacing: 3px;
        }
        .threeD-tips {
          font-size: 18px;
          margin: 20px auto;
        }
        .threeD-description {
          font-size: 16px;
        }
      }
      // 响应式 平板
      @media (max-width: $breakpoint-tablet) {
        .threeD-title {
          font-size: 32px;
          letter-spacing: 2px;
        }
        .threeD-tips {
          font-size: 18px;
          margin: 18px auto;
        }
        .threeD-description {
          width: 100%;
          font-size: 16px;
        }
      }
      // 响应式 手机
      @media (max-width: $breakpoint-mobile) {
        .threeD-title {
          font-size: 28px;
        }
        .threeD-tips {
          font-size: 16px;
          margin: 14px auto;
        }
        .threeD-description {
          font-size: 14px;
        }
      }
    }
  }

  .share-section {
    padding: 40px 0 90px;
    background-color: #f7f7f7;
    .container {
      padding: 1px 16px;
      .share-title {
        color: #000;
        font-size: 44px;
        font-weight: 500;
        text-align: center;
        margin: 50px auto;
        letter-spacing: 10px;
      }
      .share-list {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        .share-item {
          width: calc(20%);
          .share-item-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
        }
      }
      .share-swiper {
        display: none;
      }
      .share-more {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 30px auto;
        font-size: 16px;
        color: #383838;
        cursor: pointer;
      }
    }
    // 响应式 大屏幕
    @media (max-width: $breakpoint-large-desktop) {
      .container {
        .share-title {
          font-size: 36px;
          letter-spacing: 8px;
        }
      }
    }
    // 响应式 电脑
    @media (max-width: $breakpoint-desktop) {
      padding: 40px 0 70px;
      .container {
        .share-title {
          font-size: 32px;
          margin: 40px auto;
          letter-spacing: 6px;
        }
        .share-list {
          .share-item {
            width: 33.33%;
          }
        }
      }
    }
    // 响应式 平板
    @media (max-width: $breakpoint-tablet) {
      padding: 30px 0 60px;
      .container {
        .share-title {
          font-size: 28px;
          margin: 40px auto;
          letter-spacing: 2px;
        }
        .share-list {
          display: none;
        }
        .share-swiper {
          display: block;
          :deep(.el-carousel__indicator.el-carousel__indicator--horizontal) {
            .el-carousel__button {
              width: 12px;
              height: 3px;
              border-radius: 50%;
            }
            &.is-active {
              .el-carousel__button {
                background-color: #fff;
              }
            }
          }
        }
      }
    }
    // 响应式 手机
    @media (max-width: $breakpoint-mobile) {
      padding: 20px 0 40px;
      .container {
        .share-title {
          font-size: 24px;
          margin: 30px auto;
          letter-spacing: 2px;
        }
        .share-more {
          margin: 20px auto;
          font-size: 14px;
        }
      }
    }
  }

  .work-section {
    padding: 40px 0;
    .container {
      .work-content {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 40px;
        .work-content-item {
          width: calc(33.33% - 40px);
          .work-content-item-title {
            font-size: 30px;
            font-weight: 500;
            margin-bottom: 30px;
          }
          .work-content-item-desc {
            font-size: 16px;
            color: #585858;
            margin-bottom: 20px;
          }
        }
      }
    }
    // 响应式 大屏幕
    @media (max-width: $breakpoint-large-desktop) {
      .container {
        .work-content {
          gap: 20px;
          .work-content-item {
            width: calc(33.33% - 20px);
            .work-content-item-title {
              font-size: 24px;
            }
          }
        }
      }
    }
    // 响应式 电脑
    @media (max-width: $breakpoint-desktop) {
      .container {
        .work-content {
          gap: 30px;
          .work-content-item {
            width: 100%;
          }
        }
      }
    }
  }

  .secure-content {
    padding: 25px 0;
    .container {
      .secure-level {
        display: flex;
        justify-content: space-between;
        .secure-level-content {
          flex: 1;
          width: 50%;
          padding: 0 0 0 20px;
          display: flex;
          flex-direction: column;
          justify-content: center;
          .secure-level-tips {
            font-size: 16px;
            font-weight: 500;
            color: #383838;
            margin-bottom: 10px;
          }
          .secure-level-title {
            font-size: 32px;
            font-weight: 500;
            color: #383838;
          }
          .secure-level-desc {
            margin: 20px 0;
            font-size: 16px;
            color: #585858;
          }
          .secure-level-btn {
            .secure-level-btn-inner {
              display: inline-block;
              font-size: 16px;
              color: #703ffa;
              border: 1px solid #703ffa;
              border-radius: 10px;
              padding: 6px 20px;
              cursor: pointer;
              transition: all 0.3s ease;
              &:hover {
                background-color: #703ffa;
                color: #fff;
              }
            }
          }
        }
        .secure-iso {
          flex: 1;
          width: 50%;
          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
        }
      }
      // 响应式 电脑
      @media (max-width: $breakpoint-desktop) {
        .secure-level {
          display: flex;
          justify-content: space-between;
          flex-wrap: wrap;
          .secure-level-content {
            flex: 1 1 100%;
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: center;

            .secure-level-tips {
              font-size: 14px;
            }
            .secure-level-title {
              font-size: 28px;
              font-weight: 500;
            }
            .secure-level-desc {
              margin: 20px 0;
              font-size: 16px;
            }
            .secure-level-btn {
              .secure-level-btn-inner {
                font-size: 16px;
                padding: 6px 20px;
              }
            }
          }
          .secure-iso {
            flex: 1 1 100%;
            width: 100%;
          }
        }
      }
      // 响应式 平板
      @media (max-width: $breakpoint-tablet) {
        .secure-level {
          .secure-level-content {
            .secure-level-title {
              font-size: 32px;
            }
            .secure-level-desc {
              margin: 20px 0 40px;
              font-size: 16px;
            }
            .secure-level-btn {
              .secure-level-btn-inner {
                font-size: 16px;
                padding: 6px 20px;
              }
            }
          }
        }
      }
    }
  }

  .three-col-content {
    padding: 25px 0 60px;
    .container {
      .three-col-list {
        display: flex;
        flex-wrap: wrap;
        gap: 30px 24px;
        .three-col-item {
          width: calc(33.33% - 16px);
          border-radius: 14px;

          .three-col-item-inner {
            flex: 1 1 100%;
            width: 100%;
            height: 100%;
            .three-col-item-img {
              width: 100%;
              border-radius: 14px;
              object-fit: cover;
              margin-bottom: 20px;
            }
            .three-col-item-title {
              font-size: 36px;
              font-weight: 500;
              color: #000;
              margin-bottom: 30px;
            }
            .three-col-item-content {
              font-size: 16px;
              color: #585858;
              padding-bottom: 20px;
            }
            .three-col-item-btn {
              align-content: flex-end;
              display: flex;
              justify-content: center;
              align-items: center;
              padding: 10px 20px;
              font-size: 16px;
              width: fit-content;
              border: 1px solid #703ffa;
              color: #703ffa;
              border-radius: 10px;
            }
          }
        }
      }

      // 响应式 电脑
      @media (max-width: $breakpoint-desktop) {
        .three-col-list {
          gap: 30px 24px;
          .three-col-item {
            width: 100%;
            padding: 8px;
            .three-col-item-inner {
              .three-col-item-title {
                margin-bottom: 20px;
                font-size: 24px;
              }
            }
          }
        }
      }
      // 响应式 平板
      @media (max-width: $breakpoint-tablet) {
        .three-col-list {
          gap: 30px 10px;
          .three-col-item {
            .three-col-item-inner {
              .three-col-item-title {
                margin-bottom: 20px;
                font-size: 22px;
              }
              .three-col-item-content {
                font-size: 14px;
              }
              .three-col-item-btn {
                padding: 6px 20px;
                font-size: 14px;
              }
            }
          }
        }
      }
      // 响应式 手机
      @media (max-width: $breakpoint-mobile) {
        .three-col-list {
          gap: 10px;
          .three-col-item {
            .three-col-item-inner {
              .three-col-item-btn {
                padding: 6px 12px;
                font-size: 14px;
              }
            }
          }
        }
      }
    }
  }
</style>
